﻿//#include "mydashboard_p.h"

//MyDashBoardPrivate::MyDashBoardPrivate()
//    : pointerDirection(XType::Clockwise),
//      thickness(1),
//      mainScaleNum(3),
//      subScaleNum(2),
//      dataBaseType(XType::Dec),
//      maximumRange(100),
//      minimumRange(0),
//      upperDangerousValue(90),
//      upperDVEnable(true),
//      lowerDangerousValue(10),
//      lowerDVEnable(true),
//      upperAlarmValue(80),
//      upperAVEnable(true),
//      lowerALarmValue(20),
//      lowerAVEnable(true)
//{
//}

//MyDashBoardPrivate::~MyDashBoardPrivate()
//{
//}

//MyDashBoard::MyDashBoard(QWidget *parent)
//    : MyLabel(parent),
//      d(new MyDashBoardPrivate)
//{
//}

//MyDashBoard::~MyDashBoard()
//{
//    delete d;
//}

///*!
//    \property MyDashBoard::pointerDirection
//    \brief the direction of the pointer

//    The default direction is Clockwise.

//    \sa indent
//*/
//XType::DashBoardPointerDirection MyDashBoard::getPointerDirection() const
//{
//    return d->pointerDirection;
//}

//void MyDashBoard::setPointerDirection(XType::DashBoardPointerDirection pointerDir)
//{
//    if(d->pointerDirection == pointerDir)
//        return;
//    d->pointerDirection = pointerDir;
//    this->update();
//}

///*!
//    \property MyDashBoard::thickness
//    \brief the thickness of the pointer

//    The default thickness is 1.

//    \sa indent
//*/
//int MyDashBoard::getThickness() const
//{
//    return d->thickness;
//}

//void MyDashBoard::setThickness(int thickness)
//{
//    if(d->thickness == thickness)
//        return;
//    d->thickness = thickness;
//    this->update();
//}

///*!
//    \property MyDashBoard::mainScaleNum
//    \brief the mainScaleNum of the dashBoard

//    The default mainScaleNum is 3.

//    \sa indent
//*/
//int MyDashBoard::getMainScaleNum() const
//{
//    return d->mainScaleNum;
//}

//void MyDashBoard::setMainScaleNum(int num)
//{
//    if(d->mainScaleNum == num)
//        return;
//    d->mainScaleNum = num;
//    this->update();
//}

///*!
//    \property MyDashBoard::subScaleNum
//    \brief the subScaleNum of the dashBoard

//    The default subScaleNum is 2.

//    \sa indent
//*/
//int MyDashBoard::getSubScaleNum() const
//{
//    return d->subScaleNum;
//}

//void MyDashBoard::setSubScaleNum(int num)
//{
//    if(d->subScaleNum == num)
//        return;
//    d->subScaleNum = num;
//    this->update();
//}

///*!
//    \property MyDashBoard::dataBaseType
//    \brief the dataBaseType of the dashBoard's data

//    The default dataBaseType is Dec.

//    \sa indent
//*/
//XType::DataBaseFormat MyDashBoard::getDataBaseType() const
//{
//    return d->dataBaseType;
//}

//void MyDashBoard::setDataBaseType(XType::DataBaseFormat format)
//{
//    if(d->dataBaseType == format)
//        return;
//    d->dataBaseType = format;
//    this->update();
//}

///*!
//    \property MyDashBoard::maximumRange
//    \brief the maximumRange of the dashBoard

//    The default maximumRange is 100.

//    \sa indent
//*/
//int MyDashBoard::getMaximumRange() const
//{
//    return d->maximumRange;
//}

//void MyDashBoard::setMaximumRange(int range)
//{
//    if(d->maximumRange == range)
//        return;
//    d->maximumRange = range;
//    this->update();
//}

///*!
//    \property MyDashBoard::minimumRange
//    \brief the minimumRange of the dashBoard

//    The default minimumRange is 0.

//    \sa indent
//*/
//int MyDashBoard::getMinimumRange() const
//{
//    return d->minimumRange;
//}

//void MyDashBoard::setMinimumRange(int range)
//{
//    if(d->minimumRange == range)
//        return;
//    d->minimumRange = range;
//    this->update();
//}

///*!
//    \property MyDashBoard::upperDangerousValue
//    \brief the upperDangerousValue of the dashBoard

//    The default upperDangerousValue is 90.

//    \sa indent
//*/
//int MyDashBoard::getUpperDangerousValue() const
//{
//    return d->upperDangerousValue;
//}

//void MyDashBoard::setUpperDangerousValue(int value)
//{
//    if(d->upperDangerousValue == value)
//        return;
//    d->upperDangerousValue = value;
//    this->update();
//}

///*!
//    \property MyDashBoard::upperDVEnable
//    \brief the upperDVEnable of the dashBoard

//    The default upperDVEnable is true.

//    \sa indent
//*/
//bool MyDashBoard::getUpperDVEnable() const
//{
//    return d->upperDVEnable;
//}

//void MyDashBoard::setUpperDVEnable(bool enable)
//{
//    if(d->upperDVEnable == enable)
//        return;
//    d->upperDVEnable = enable;
//    this->update();
//}

///*!
//    \property MyDashBoard::lowerDangerousValue
//    \brief the lowerDangerousValue of the dashBoard

//    The default lowerDangerousValue is 10.

//    \sa indent
//*/
//int MyDashBoard::getlowerDangerousValue() const
//{
//    return d->lowerDangerousValue;
//}

//void MyDashBoard::setlowerDangerousValue(int value)
//{
//    if(d->lowerDangerousValue == value)
//        return;
//    d->lowerDangerousValue = value;
//    this->update();
//}

///*!
//    \property MyDashBoard::lowerDVEnable
//    \brief the lowerDVEnable of the dashBoard

//    The default lowerDVEnable is true.

//    \sa indent
//*/
//bool MyDashBoard::getLowerDVEnable() const
//{
//    return d->lowerDVEnable;
//}

//void MyDashBoard::setLowerDVEnable(bool enable)
//{
//    if(d->lowerDVEnable == enable)
//        return;
//    d->lowerDVEnable = enable;
//    this->update();
//}

///*!
//    \property MyDashBoard::upperAlarmValue
//    \brief the upperAlarmValue of the dashBoard

//    The default upperAlarmValue is 80.

//    \sa indent
//*/
//int MyDashBoard::getUpperAlarmValue() const
//{
//    return d->upperAlarmValue;
//}

//void MyDashBoard::setUpperAlarmValue(int value)
//{
//    if(d->upperAlarmValue == value)
//        return;
//    d->upperAlarmValue = value;
//    this->update();
//}

///*!
//    \property MyDashBoard::upperAVEnable
//    \brief the upperAVEnable of the dashBoard

//    The default upperAVEnable is true.

//    \sa indent
//*/
//bool MyDashBoard::getUpperAVEnable() const
//{
//    return d->upperAVEnable;
//}

//void MyDashBoard::setUpperAVEnable(bool enable)
//{
//    if(d->upperAVEnable == enable)
//        return;
//    d->upperAVEnable = enable;
//    this->update();
//}

///*!
//    \property MyDashBoard::lowerALarmValue
//    \brief the lowerALarmValue of the dashBoard

//    The default lowerALarmValue is 20.

//    \sa indent
//*/
//int MyDashBoard::getLowerALarmValue() const
//{
//    return d->lowerALarmValue;
//}

//void MyDashBoard::setLowerALarmValue(int value)
//{
//    if(d->lowerALarmValue == value)
//        return;
//    d->lowerALarmValue = value;
//    this->update();
//}

///*!
//    \property MyDashBoard::lowerAVEnable
//    \brief the lowerAVEnable of the dashBoard

//    The default lowerAVEnable is true.

//    \sa indent
//*/
//bool MyDashBoard::getLowerAVEnable() const
//{
//    return d->lowerAVEnable;
//}

//void MyDashBoard::setLowerAVEnable(bool enable)
//{
//    if(d->lowerAVEnable == enable)
//        return;
//    d->lowerAVEnable = enable;
//    this->update();
//}


